package cn.hncev.xiaohui;

import java.util.HashMap;
import java.util.Map;

public class ExampleText36 {

	public static void main(String[] args) {
		// TODO 自动生成的方法存根
    Map map=new HashMap();
    map.put("name","小一" );
    map.put("sex","男" );
    map.put("age","5" );
    map.put("name", "小小");//如果有重复的键只值会覆盖
    System.out.println("name:"+map.get("name"));
    System.out.println("sex:"+map.get("sex"));
    System.out.println("age:"+map.get("age"));
	}

}
